package com.gome.ocean.service.gddl;

import java.util.List;

import com.github.pagehelper.Page;
import com.gome.ocean.dao.model.gddl.AppDatasourceBO;


public interface AppDatasourceService {

    public boolean saveAppDatasourceBO(AppDatasourceBO appDatasourceBO);

    public boolean deleteAppDatasourceBOById(Long id);

    public boolean updateAppDatasourceBOById(AppDatasourceBO appDatasourceBO);

    public AppDatasourceBO findAppDatasourceBOById(Long id);

    public AppDatasourceBO findAppDatasourceBOByDbNameAndJdbcUrl(String dbName, String jdbcUrl);

    public List<AppDatasourceBO> findAllDataSource();
    
    public List<AppDatasourceBO> findAppDataSourceByDbName(String dbName);
    
    public Page<AppDatasourceBO> findAllDataSource(int pageNum, int pageSize);
    
}
